package com.financing.wap.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.financing.wap.common.SqlName;
import com.financing.wap.dao.IHS300Dao;
import com.financing.wap.dto.HS300DTO;

@Repository
public class HS300DaoImpl extends BaseDaoImpl<HS300DTO, Integer> implements IHS300Dao{

	@Override
	public List<HS300DTO> listHS300(Map<String, String> hs300Param) {
		return this.getSqlMapClientTemplate().queryForList(sqlName.QUERYHS300BYDATE,hs300Param);
	}

	@Override
	public int addHs300(Map<String, String> map) {
		this.getSqlMapClientTemplate().insert(SqlName.insertHs300,map);
		return 1; 
	}
	
	@Override
	public Class<HS300DTO> getEntityClass() {
		return HS300DTO.class;
	}

}
